package com.rimi.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.rimi.bean.Shopcar;
import com.rimi.mapper.ShopcarMapper;
import com.rimi.service.ShopcarService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: ECsystem
 * @Date: 2018/9/20 11:18
 * @Author: Mr.GuoQiang
 * @Description:
 */
@Service
public class ShopcarServiceImpl implements ShopcarService {

//    @Resource(name = "shopcarMapper")
    @Autowired
    private ShopcarMapper shopcarMapper;

    @Override
    public Shopcar selectByShopId(Integer shopid) {
        return shopcarMapper.selectByShopId(shopid);
    }

    @Override
    public int updateByPrimaryKey(Shopcar record) {
        return shopcarMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Shopcar record) {
        return shopcarMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int insert(Shopcar record) {
        return shopcarMapper.insert(record);
    }

    @Override
    public List<Shopcar> selectByExample() {
        return shopcarMapper.selectByExample();
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return shopcarMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByExample() {
        return shopcarMapper.deleteByExample();
    }

}
